home *** CD-ROM | disk | FTP | other *** search
- John Severinsen wrote:
-
- > From my (admittedly rather limited) experience with UNIX pattern matching, the
- > AmigaDos system is more powerful (I suggest you read your manuals). You have
- > the following wildcards in AmigaDOS:
- >
- > # - Match any number the following character
- > ? - Match any single character
- > () - Group things together
- > | - Like a logical OR
- > [] - Character ranging
- > ~ - Like a logical NOT
- > % - Match the NULL string
- >
- > I think that's all but with these I have never come across anything that can't
- > be specifically matched.
-
- And, in addition, these pattern matching operations are available to any
- application for any purpose, not just for filenames. By accessing a single
- function in the dos.library DLL, one could easily implement a regexp string
- search feature in a text editor or database application.
-
- As the operating system supplies a standard syntax for pattern matching,
- user is not forced to learn numerous propiertary syntaxes. Even in UN*X
- (and variants) there are at least two standards: shell wildcards (* and ?)
- and "grep" regexp. Also unfortunately, almost every implementation varies
- a bit from the other.
-
- --
- Arttu KΣrpinlehto
- /////////////////////////////
- mailto:karttu@muncca.fi
- http://www.muncca.fi/~karttu/
-